use solutiont6::{簡繁轉換, 繁簡轉換};

pub fn converter(input: &str, tp: &str) -> String {
    let 轉換 = match tp {
        "s2t" => 簡繁轉換,
        "t2s" => 繁簡轉換,
        _ => return input.to_string(),
    };
    轉換(input)
}
